// components/DocsContent.tsx
"use client";

import React from "react";
import dynamic from "next/dynamic";
import type { MDXRemoteSerializeResult } from "next-mdx-remote";

// ClientMDX 是你已有的那个组件
const ClientMDX = dynamic(() => import("./ClientMDX"), {
    ssr: false, // 仅在浏览器端渲染
});

export interface DocsContentProps {
    source: MDXRemoteSerializeResult;
}
 export default function DocsContent({ source }: DocsContentProps) {
    return <ClientMDX source={source} />;
}
